<?php

namespace app\Admin\controller;

use think\Controller;
use think\Request;
use think\Session;

class Base extends Controller
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->isLogin();
    }

//后台页面权限控制，禁止越权访问—翻墙
    public function isLogin(){
        if(empty(Session::get('uid'))){
          dump('非法登录,请注意!');die();
        }
    }
}
